package org.springblade.modules.platform.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author SYG
 * @since 2023-08-01
 */
@Data
public class SysParameterDTO {



    @ApiModelProperty(value = "侧台ID")
    private Long measuringPlatformId;
    /**
     * 设备ID
     */
    @ApiModelProperty(value = "设备通道ID(地址)")
    private String deviceChannelId;

    /**
     * 设备名称
     */
    @ApiModelProperty(name = "设备名称")
    private String deviceName;



    @ApiModelProperty(value = "集合")
    private List<ParameterDTO> parameterDTOS;

    @NoArgsConstructor
    @Data
    public static class ParameterDTO {



        /**
         * 物理量字段
         */
        @ApiModelProperty(name = "物理量字段")
        private String parameterKey;
        /**
         * 物理量字段
         */
        @ApiModelProperty(name = "传感器编号")
        private String sensorNumber;

        @ApiModelProperty(value = "集合")
        private List<ParameterValueDTO> parameterValueDTOS;
        @NoArgsConstructor
        @Data
        public static class ParameterValueDTO {

            /**
             * 主键
             */
            private Long id;
            /**
             * 小值
             */
            @ApiModelProperty(name = "小值")
            private Double minValue;

            /**
             * 大值
             */
            @ApiModelProperty(name = "大值")
            private Double maxValue;

            /**
             * 倾角X系数K
             */
            @ApiModelProperty(name = "倾角X系数K")
            private Double dipXK;

            /**
             * 倾角X系数B
             */
            @ApiModelProperty(name = "倾角X系数B")
            private Double dipXB;
        }

    }
}
